#include<stdio.h>
#include"SeqList.h"
void TestSeqList1()
{
	SeqList sl;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushBack(&sl, 4);
	SeqListPushBack(&sl, 5);
	SeqListPushBack(&sl, 6);
	SeqListPushBack(&sl, 6);
	SeqListPushBack(&sl, 0);
	SeqListPushBack(&sl, 0);
	SeqListPrint(&sl);

	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPrint(&sl);

	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPrint(&sl);

	SeqListPushFront(&sl, 1);
	SeqListPushFront(&sl, 2);
	SeqListPrint(&sl);


	SeqListPopFront(&sl);
	//SeqListPopFront(&sl);
	SeqListPrint(&sl);


	SeqListDestroy(&sl);
}
void TestSeqList2()
{
	SeqList sl;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushBack(&sl, 4);
	SeqListPushBack(&sl, 5);
	SeqListPushBack(&sl, 6);
	int x=SeqListFind(&sl, 5);

	SeqListInsert(&sl, 2, 9);
	SeqListPrint(&sl);
	SeqListErase(&sl, 2);
	SeqListPrint(&sl);
}
int main()
{
	TestSeqList2();

	return 0;
}